/*
 * This file is part of aion-lightning <aion-lightning.org>.
 * 
 * aion-lightning is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * aion-lightning is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with aion-lightning.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.aionengine.gameserver.model.autogroup;

import com.aionengine.gameserver.model.PlayerClass;
import com.aionengine.gameserver.model.Race;
import com.aionengine.gameserver.model.gameobjects.player.Player;

/**
 * @author xTz
 */
public class AGPlayer {

    private Integer objectId;
    private Race race;
    private PlayerClass playerClass;
    private String name;
    private boolean isInInstance;
    private boolean isOnline;
    private boolean isPressEnter;

    public AGPlayer(Player player) {
        objectId = player.getObjectId();
        race = player.getRace();
        playerClass = player.getPlayerClass();
        name = player.getName();
        isOnline = true;
    }

    public Integer getObjectId() {
        return objectId;
    }

    public Race getRace() {
        return race;
    }

    public String getName() {
        return name;
    }

    public PlayerClass getPlayerClass() {
        return playerClass;
    }

    public void setInInstance(boolean result) {
        isInInstance = result;
    }

    public boolean isInInstance() {
        return isInInstance;
    }

    public boolean isOnline() {
        return isOnline;
    }

    public void setOnline(boolean result) {
        isOnline = result;
    }

    public boolean isPressedEnter() {
        return isPressEnter;
    }

    public void setPressEnter(boolean result) {
        isPressEnter = result;
    }

}
